package zhr.chapter5.MemberCardDemoApp.cardpackage;

public class VIPCard extends Card{
    public VIPCard() {
        this.type="VIPCard";
    }

    public VIPCard(String type, float amount) {
        super(type, amount);
    }

    @Override
    public float shouldPay(float totalPrice) {
        return totalPrice*0.7f;
    }
}
